<?php

defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.application.component.controller' );

class AuctionControllerOrders extends JController
{
	function __construct( $default = array())
	{
		parent::__construct( $default );
	}

	function display() 
	{
	   parent::display();
	}
	
	function remove()
	{
		$model = $this->getModel('edit');
		if(!$model->deleteOrders()) {
			$msg = JText::_( 'Error, cannot deleted' );
		} else {
			$msg = JText::_( 'Orders are deleted!' );
		}
		$this->setRedirect( 'index.php?option=com_auction&controller=orders', $msg );
	}
} 